home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Xconq 7.0d37 / source / test / routing.g < prev    next >
Encoding:
Text File  |  1994-03-17  |  938 b   |  67 lines  |  [TEXT/R*ch]

  1. ;; This is a test of routing algorithms.
  2.  
  3. ;;; (should include about 10-20 destinations chosen by variant)
  4. ;;; ((implies testing script can choose variants...))
  5. ;;; (should include two "passable" type, two "impassable",
  6. ;;; 1-2 bords, 1-2 conns)
  7.  
  8. (include "tank")
  9.  
  10. (area 30 30)
  11.  
  12. (area (terrain (by-name "+" plains)
  13.   "30+"
  14.   "30+"
  15.   "30+"
  16.   "30+"
  17.   "30+"
  18.   "30+"
  19.   "30+"
  20.   "30+"
  21.   "30+"
  22.   "30+"
  23.   "30+"
  24.   "30+"
  25.   "30+"
  26.   "30+"
  27.   "30+"
  28.   "30+"
  29.   "30+"
  30.   "30+"
  31.   "30+"
  32.   "30+"
  33.   "30+"
  34.   "30+"
  35.   "30+"
  36.   "30+"
  37.   "30+"
  38.   "30+"
  39.   "30+"
  40.   "30+"
  41.   "30+"
  42.   "30+"
  43. ))
  44.  
  45. ;; Limit to two players only.
  46.  
  47. (set sides-min 2)
  48. (set sides-max 2)
  49.  
  50. ;; Two sides, no special properties needed (?).
  51.  
  52. (side 1)
  53.  
  54. (side 2)
  55.  
  56. ;;; (no player for one side so tank doesn't move?)
  57.  
  58. ;; Two tanks, one for each side, at predetermined locations.
  59.  
  60. (tank 10  7 1)
  61.  
  62. (tank 10 13 2)
  63.  
  64. ;; This motivates the AI to go chasing after the destination.
  65.  
  66. (scorekeeper (do last-side-wins))
  67.